<!DOCTYPE HTML>
<html>
<head>
    <title></title>
    <script language="JavaScript" src="../resource/base/mootools-core-1.4.5.js"></script>
    <script language="JavaScript" src="../resource/ycl.js"></script>
    <script language="JavaScript" src="../resource/utils/datefmt.js"></script>
</head>
<script>
    alert(YCL.datefmt.date2Str(new Date(),"yyyyMMdd"));
    alert(YCL.datefmt.str2Date("1992_09_22","yyyy_mm_dd"));
    alert(YCL.datefmt.str2str("1992_09_22","yyyy_mm_dd","yy______mmdd"));
    alert(YCL.datefmt.compare("1992_09_25","yyyy_mm_dd","1992_09_23","yyyy_mm_dd"));
    //YCL.datefmt.isDate("1992_09_________22","yyyy_mm_________dd");//返回true
</script>
<body>

</body>
</html>